import actions from "./actions";
import mutations from "./mutations";

export default {
    namespaced: true,
    state: () => ({
        tableList: [],
        // 表头
        linklist: [
            {
              id: "0",
              name: "客户名称",
              isRouter: true,
              url: "/information/seasinformation",
            },
            {
              id: "1",
              name: "联系人",
              isRouter: false,
            },
            {
              id: "2",
              name: "手机号码",
              isRouter: false,
            },
            {
              id: "3",
              name: "电子邮箱",
              isRouter: false,
            },
            {
              id: "4",
              name: "qq",
              isRouter: false,
            },
            {
              id: "5",
              name: "邮编",
              isRouter: false,
            },
            {
              id: "6",
              name: "客户来源",
              isRouter: false,
            },
            {
              id: "7",
              name: "客户类型",
              isRouter: false,
            },
            {
              id: "8",
              name: "地址",
              isRouter: false,
            },
            {
              id: "9",
              name: "录入时间",
              isRouter: false,
            },
            {
              id: "10",
              name: "最后更新",
              isRouter: false,
            },
          ],
        //   按钮
          btnList: [
            {
              id: "1",
              name: "申请",
              type:"公海"
            },
            {
              id: "2",
              name: "修改",
              type:"公海",
            },
            {
              id: "3",
              name: "删除",
              type:"公海"
            },
          ],
        //   字段
          titleList: [
            "customer_name",//客户名称
            "contact_name",//联系人
            "contact_phone",//手机号码
            "contact_email",//电子邮箱
            "qq",
            "post_code",//邮编
            "origin",//客户来源
            "type",//客户类型
            "address",//详细地址
            "import_Date",//录入时间
            "update_Date",//更新时间
            // "applicant",//申请人
            // "applicationtime",//申请时间
            "remark",//备注
            
          ],
          Customerorigin:[],//客户来源
          Customertype:[],//客户类型
          searchVal: ""
    }),
    getters: {},
    mutations,
    actions,
}